.media-session-container {
  border-radius: 10px;
  box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5);
}

.media-session {
  display: grid;
  position: relative;
  overflow: hidden;
  border-radius: 10px;

  .horizontal & {
    grid-template-columns: var(--config-item-size) 1fr;
    height: var(--config-item-size);
    width: calc(var(--config-item-size) * 3 + var(--config-space-between-items) * 2);
  }

  .vertical & {
    grid-template-rows: var(--config-item-size) 1fr;
    height: calc(var(--config-item-size) * 3 + var(--config-space-between-items) * 2);
    width: var(--config-item-size);
  }

  .media-session-thumbnail-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
  }
  
  .media-session-app-icon {
    position: absolute;
    z-index: 3;
    width: 25%;
    aspect-ratio: 1/1;
    right: 5%;
    bottom: 5%;
    object-fit: contain;
  }

  .media-session-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0004;
  }

  .media-session-blurred-thumbnail {
    filter: blur(10px) brightness(125%) contrast(125%);
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  .media-session-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 4px;

    .media-session-title {
      letter-spacing: 0.3px;
      line-height: 1.3em;
      font-size: 0.7rem;
      font-weight: 600;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      max-width: 100%;
      margin-bottom: 2px;
      margin-right: -2px;

      &.media-session-title-default {
        text-align: center;
        white-space: normal;
      }

      .vertical & {
        display: none;
      }
    }

    .media-session-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2px;

      .vertical & {
        flex-direction: column;
        gap: 12px;
      }

      .ant-btn {
        color: inherit !important;
        height: 16px;
      }
    }
  }
}
